#!/bin/bash

# 需要使用 source 执行

# set -eux
#cd "$(dirname $0)"

HTTP="http://192.168.8.53:7890"
HTTPS="http://192.168.8.53:7890"

if [ "$1" == "on" ]; then
    export http_proxy=$HTTP
    export https_proxy=$HTTPS
else
    export http_proxy=""
    export https_proxy=""
fi
